using System.Linq;
using NHibernate.Linq;

namespace Nvigorate.Repository.Test
{
    public class RegisterVehicleFetchingStrategy : FetchingStrategy<IRegisterVehicle>.For<Person>
    {
        public IQueryable<Person> ApplyTo(INHibernateQueryable<Person> queryable)
        {
            return queryable.Expand("Vehicles");
        }
    }
}